home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula 1
/
Nebula One.iso
/
Mail
/
pine3.92
/
pine
/
osdep
/
tempfile.non
< prev
next >
Wrap
Text File
|
1994-03-11
|
411b
|
18 lines
/*----------------------------------------------------------------------
Create a temporary file, the name of which we don't care about
and that goes away when it is closed. Just like ANSI C tmpfile.
----*/
FILE *
create_tmpfile()
{
char *file_name;
FILE *stream;
file_name = temp_nam("/tmp", "pine-tmp");
stream = fopen(file_name, "w+");
unlink(file_name);
return(stream);
}